<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>在线咨询系统</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <link rel="stylesheet" href="css/index.css">
  <script>
    function resizeRootNodeFontSize() {
      /** 更改根节点的字体大小，适用于移动端的rem适配 */
      const html = document.getElementsByTagName('html')[0]
      const getScale = function () {
        let width = html.clientWidth,
          scale = Number(width / 750).toFixed(4)  // 320:0.427  768:1.024
        lastScale = (scale >= 1.024) ? 1.024 : (scale <= 0.427 ? 0.427 : scale)
        return lastScale
      }
      const changePage = function () {
        let lastScale = getScale()
        if (html.clientWidth <= 768) {
          html.setAttribute('style', 'font-size:' + (lastScale * 100).toFixed(3) + 'px');
        } else {
          html.setAttribute('style', '')
        }
      }
      changePage()
      const resizeEvent = 'orientationchange' in window ? 'orientationchange' : 'resize'
      if (!document.addEventListener) return
      window.addEventListener(resizeEvent, changePage, false)
      window.addEventListener('DOMContentLoaded', changePage, false)
    }
    resizeRootNodeFontSize()
  </script>
</head>

<body>
  <div class="page-conatiner">
    这里是企业官网内容
  </div>
  <div class="contact row">在线咨询</div>
  <div class="chat-panel">
    <div class="container">
      <div class="header bg-blue">青玉的在线咨询小黑屋</div>
      <div class="room"></div>
      <div class="foot">
        <div class="form">
          <textarea class="mesbox" wrap="virtual"></textarea>
          <!-- <input class="mesbox phone" type="text"/> -->
          <div class="row btn-row">
            <div class="btn close-btn">关闭</div>
            <div class="btn btn-blue">发送</div>
            <!-- <input  type="button" value="发送" /> -->
          </div>
        </div>
      </div>
    </div>
  </div>
</body>
<script src="js/socket.io.js"></script>
<script src="js/jquery-2.0.3.min.js"></script>
<script src="js/index.js"></script>

</html>